package com.moinut.studentattendancemanager.model.dao.proxy;

import com.moinut.studentattendancemanager.model.dbc.DatabaseConnection;

/**
 * @author MOILING
 */
/* package */ abstract class BaseDAOProxy<Dao> {
    /* package */ DatabaseConnection databaseConnection = null;
    /* package */ Dao dao = null;

    /* package */ BaseDAOProxy() {
        try {
            this.databaseConnection = new DatabaseConnection();
        } catch (Exception e) {
            e.printStackTrace();
        }
        this.dao = setDAOImpl();
    }

    /* package */ abstract Dao setDAOImpl();
}
